/*    */ package com.zimbra.cs.dav.service.method;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.dav.DavContext;
/*    */ import com.zimbra.cs.dav.DavException;
/*    */ import com.zimbra.cs.dav.DavProtocol;
/*    */ import com.zimbra.cs.dav.resource.DavResource;
/*    */ import com.zimbra.cs.dav.service.DavMethod;
/*    */ import com.zimbra.cs.dav.service.DavServlet;
/*    */ import java.io.IOException;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class Options
/*    */   extends DavMethod
/*    */ {
/*    */   public static final String OPTIONS = "OPTIONS";
/*    */   
/* 34 */   public String getName() { return "OPTIONS"; }
/*    */   
/*    */   public void handle(DavContext ctxt) throws DavException, IOException, ServiceException {
/* 37 */     HttpServletResponse resp = ctxt.getResponse();
/* 38 */     DavServlet.setAllowHeader(resp);
/* 39 */     if (ctxt.isMsft())
/* 40 */       resp.addHeader("MS-Author-Via", "DAV");
/* 41 */     resp.setContentLength(0);
/*    */     try {
/* 43 */       DavResource rs = ctxt.getRequestedResource();
/* 44 */       ctxt.setDavCompliance(DavProtocol.getComplianceString(rs.getComplianceList()));
/*    */     } catch (Exception e) {}
/* 46 */     sendResponse(ctxt);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/dav/service/method/Options.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */